import { createRouter,createWebHistory } from "vue-router";

import index from './components/index.vue'
import login from './components/login.vue'
import admin from './components/admin.vue'
import user from './components/user.vue'
import app from './components/app.vue'
const router = createRouter({
    history: createWebHistory(),
    routes: [
        {path: '/',name: 'index',component: index},
        {path: '/login',name: 'login',component: login},
        {path: '/admin',name: 'admin',component: admin},
        {path: '/user',name: 'user',component: user},
        {path: '/app',name: 'app',component: app},
    ],
})
export default router